<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/css/bootstrap.min.css">
    <script src="https://code.jquery.com/jquery-3.3.1.slim.min.js"></script>
    <script src="https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/js/bootstrap.min.js" ></script>
</head>
<body>
<form action="/student/{{ stu.no }}/do_update/" method="post" enctype="multipart/form-data">
    <h1 class="info">学生信息修改</h1>
    {% csrf_token %}
    <div class="form-group">
        <label>学号：</label>
        <input type="text" name="no" class="form-control form-text"    readonly value="{{ stu.no }}">
    </div>
    <div class="form-group">
        <label>姓名：</label>
        <input type="text" name="name" class="form-control form-text"  value="{{ stu.name }}">
    </div>
    <div class="form-group">
        <lable>年龄：</lable>
        <input type="text" name="age" class="form-control form-text"   value="{{ stu.age }}">
    </div>
    <div class="form-group">
        <label>性别：</label>
        <select name="gender" class="form-control">
            <option value="0" selected>未选择</option>
            <option value="1">男</option>
            <option value="2">女</option>
        </select>
    </div>
    <div class="form-group">
        <label class="text-muted">电话号码：</label>
        <input type="text" name="phone" class="form-control form-text"  value="{{ stu.phone }}">
    </div>
    <div class="form-group">
        <label for="exampleFormControlFile1">头像：</label>
        <input type="file" class="form-control-file" name="avatar">
    </div>
    <div class="form-group row">
        <div class="col-sm-10">
            <button type="submit" class="btn btn-secondary btn-lg">提交</button>
        </div>
    </div>
</form>
</body>
</html>